//
//  SXCallbackWithString.h
//  SXIotSDK
//
//  Created by 林鑫 on 2019/12/4.
//

#import <Foundation/Foundation.h>
#import "SXSOnDataLoadedListener.h"

NS_ASSUME_NONNULL_BEGIN

@interface SXCallbackWithString : NSObject<ComBoneylinkSxiotsdkshareListenerSXSOnDataLoadedListener>

typedef void(^CallbackWithStringType)(NSString*, NSError*);
@property (nonatomic, copy) CallbackWithStringType callback;

- (instancetype)initWithCallback:(void(^)(NSString* result, NSError* error))callback;

@end

NS_ASSUME_NONNULL_END
